package com.lbmb.photodrawaimanager.controller;

import com.lbmb.photodrawaimanager.entity.req.UserReq;
import com.lbmb.photodrawaimanager.entity.resp.UserResp;
import com.lbmb.photodrawaimanager.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author hanWang
 * @Title:
 * @Package
 * @Description: 用户接口
 * @date 2023/8/110:27 下午
 */
@RequestMapping("/user")
@RestController
public class UserController extends BaseController {

    @Autowired
    private UserService userService;

    @RequestMapping("/getUserById")
    public List<UserResp> getUserList(@RequestBody UserReq req){

        return userService.getUser(req);

    }

}
